Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude unused dependencies to reduce file size #93

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

lognaturel
Copy link
Member

@lognaturel lognaturel commented Sep 9, 2024

Progress to #92, down to 3.9 MB

What has been done to verify that this works as intended?

Ran the resulting jar, validated some forms. Thought about ways geoJSON is used to confirm they require an external file.

Used java -verbose:class to identify bouncycastle classes actually used for form extract-signed.xml.zip

Why is this the best possible solution? Were any other approaches considered?

It isn't needed so let's remove. I initially thought I could also remove the CSV dependency but it's currently used.

Are there any risks to merging this code? If so, what are they?

Those libs could be used in ways that I haven't anticipated. Risk is limited to extract-signed and geojson which are advanced features.

@lognaturel lognaturel changed the title Exclude dependencies only for external files Exclude geojson dependency used only for external files Sep 9, 2024
@lognaturel lognaturel changed the title Exclude geojson dependency used only for external files Exclude dependencies to reduce file size Sep 9, 2024
@lognaturel lognaturel changed the title Exclude dependencies to reduce file size Exclude unused dependencies to reduce file size Sep 9, 2024
@lognaturel lognaturel merged commit b76beb3 into getodk:master Sep 9, 2024
1 check passed
@lognaturel lognaturel deleted the dep-exclude branch September 9, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants